package zyq.po;

public class User {
	private int id;
    private String userName;
    private String userAge;
    private String userAddress;
    public User(){}
    public User(String userName, String userAge, String userAddress) {
        this.userName = userName;
        this.userAge = userAge;
        this.userAddress = userAddress;
    }
    public User(int id, String userName, String userAge, String userAddress) {
        this.id = id;
        this.userName = userName;
        this.userAge = userAge;
        this.userAddress = userAddress;
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName1(String userName) {
        this.userName = userName;
    }
    public String getUserAge() {
        return userAge;
    }
    public void setUserAge(String userAge) {
        this.userAge = userAge;
    }
    public String getUserAddress() {
        return userAddress;
    }
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }
    
    public String toString() {
    	//return String.format("id:%2d,usename:%s,userAge:%s,userAddress:%s", id,userName,userAge,userAddress);
    	return String.format("id:%2d \t usename:%s \t userAge:%s \t userAddress:%s", id,userName,userAge,userAddress);
    }
}
